Permanent Magnet Simulation With Elmer Fem